package com.feiyun.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Setter
@Getter
@ApiModel(value = "微信token", description = "存储微信token")
@TableName("wx_access_token")
public class WxAccessToken {


      @ApiModelProperty("用户唯一ID")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("access_token凭证")
      @TableField(value = "access_token")
      private String accessToken;

      @ApiModelProperty("凭证有效时间。单位：秒")
      @TableField(value = "expires_in")
      private String expiresIn;

      @ApiModelProperty("创建时间")
      @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
      private LocalDateTime createDate;

}
